﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace AIVision.InspectModule.Inspect.Models
{
    /// <summary>
    /// 缺陷项目模型，用于配置要检测的缺陷内容及相关标准
    /// </summary>
    public class DefectItemModel
    {
        /// <summary>
        /// 区域名称
        /// </summary>
        [XmlElement("AreaName")]
        public string AreaName { get; set; }
        /// <summary>
        /// 区域索引
        /// </summary>
        [XmlElement("AreaIndex")]
        public int AreaIndex { get; set; }
        /// <summary>
        /// 缺陷名称
        /// </summary>
        [XmlElement("DefectName")]
        public string DefectName { get; set; }
        /// <summary>
        /// 缺陷代码
        /// </summary>
        [XmlElement("DefectCode")]
        public string DefectCode { get; set; }
        /// <summary>
        /// 缺陷索引
        /// </summary>
        [XmlElement("DefectIndex")]
        public int DefectIndex { get; set; }
        /// <summary>
        /// 缺陷最小区域
        /// </summary>
        [XmlElement("MinArea")]
        public int MinArea { get; set; }
        /// <summary>
        /// 缺陷最小宽度
        /// </summary>
        [XmlElement("MinWidth")]
        public int MinWidth { get; set; }
        /// <summary>
        /// 缺陷最小高度
        /// </summary>
        [XmlElement("MinHeight")]
        public int MinHeight { get; set; }
        /// <summary>
        /// 最大结构因素
        /// </summary>
        [XmlElement("MaxStructFactor")]
        public int MaxStructFactor { get; set; }
    }
}
